package dm.config.exceptiom;

import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;

/***
 * 
 * @ClassName: GloableException
 * @Description:全局异常
 * @author: yinzhifu
 * @date: 2020年12月27日 下午3:27:00
 *
 * @Copyright: 2020 www.tydic.com Inc. All rights reserved.
 */
@ControllerAdvice
public class GloableException {
	@ExceptionHandler(value = Exception.class)
	public String exceptionHandler(Exception e) {
		System.out.println("未知异常！原因是:" + e);
		return e.getMessage();
	}
}
